﻿using B.T.BasicData.ErrorCode;
using B.T.BasicData.Read.Api.DTOs;

namespace B.T.BasicData.Read.Api.RBACServices.IServices
{
    /// <summary>
    /// 权限服务接口
    /// </summary>
    public interface IPermissionsServices
    {
        /// <summary>
        /// 根据用户ID获取菜单树
        /// </summary>
        List<MenuDto> GetMenuTreeByUserId(long userId);

        /// <summary>
        /// 获取级联信息
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<List<TreeshapeDto>>> SearchTreeshape();
    }
}
